package com.sluggard.security.manage.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sluggard.mp.model.entity.IdEntity;
import com.sluggard.mp.model.entity.StandardAuditEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 字典类型表
 * </p>
 *
 * @author lizheng
 * @since 2024-05-07
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_dict_type")
@Schema(name = "DictTypeEntity", description = "字典类型表")
public class DictTypeEntity extends StandardAuditEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "字典名称")
    @TableField("dict_name")
    private String dictName;

    @Schema(description = "字典类型")
    @TableField("dict_type")
    private String dictType;

    @Schema(description = "状态（0正常 1停用）")
    @TableField("status")
    private Integer status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "值列表")
    @TableField(value = "dataList",exist = false)
    private List<DictDataEntity> dataList;
}
